<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib prefix="s" uri="/struts-tags"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<s:form method="post" action="%{action}">
<table>
	<tbody>
		<tr class="blue-text16">
			<td class="heding" background="auction.cgi_files/title_bg.gif">
				Preview
				<s:if test="items.itemtype.id == 1">"Auction"</s:if>
				<s:elseif test="items.itemtype.id == 2">"Fixed price"</s:elseif>
				<s:elseif test="items.itemtype.id == 3">"Shop"</s:elseif>
				<s:elseif test="items.itemtype.id == 4">"Item wanted"</s:elseif>
				<s:elseif test="items.itemtype.id == 5">"Advertisement"</s:elseif>
				<s:elseif test="items.itemtype.id == 6">"Profile"</s:elseif>
				<s:elseif test="items.itemtype.id == 7">"Tender"</s:elseif>
			</td>
	  </tr>
		<tr class="common-bold-text">
			<td align="center" nowrap="nowrap">
				<s:text name="make_changes_notes" /> <s:text name="make_changes_button" />
			</td>

	  </tr>
		<tr>
			<td style="border-bottom: 1px dotted rgb(30, 80, 180);" height="5">
				<img src="auction.cgi_files/dot1x1.gif" border="0" height="5">
			</td>
		</tr>
		<tr>
			<td height="5">
				<img src="auction.cgi_files/dot1x1.gif" border="0" height="5">
			</td>
		</tr>
		<tr>
			<td>
				<table width="100%" border="0" cellpadding="0" cellspacing="0">
					<tbody>
						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="category_lable" /></b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:iterator value="categories" var="categories" status="status">
									<s:property value="%{backCategories[#status.index]}" /><br />
								</s:iterator>
							</td>
						</tr>
						<tr>

							<td class="search-text" valign="top" align="right">
								<b><s:text name="MultiplyCategories_label" /></b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:if test="categories.size == 1"><s:text name="no_label" /></s:if>
								<s:else><s:text name="yes_label" /></s:else>
							</td>
						</tr>
						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="title_label" /></b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px">
								<s:property value="items.title" />							</td>
						</tr>

						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="subtitle_label" /></b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;"><s:property value="items.subTitle" /></td>
						</tr>
						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="bold_lable" /></b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:if test="items.bold"><s:text name="yes_label" /></s:if>
								<s:else><s:text name="no_label" /></s:else>
							</td>

						</tr>
						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="colored_label" /></b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px; color: <s:property value="items.colored" />">
								<s:property value="items.colored" />							</td>
						</tr>
						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="bgcolor_label" /></b>							</td>

							<td valign="top" class="common-text" style="padding-top: 2px; color: <s:property value="items.bgColor" />">
								<s:property value="items.bgColor" />							</td>
						</tr>
						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="description_label" /></b>							</td>
							<!--EditData-->
							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:property value="items.description" escape="false" />							</td>
						</tr>

						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="profile_label" /></b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:property value="items.title" />							</td>
						</tr>
						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="home_page_lable" /></b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:property value="items.homePage" />							</td>

						</tr>
						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="item_language_label" /></b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:property value="items.itemLanguage.languageName" />							</td>
						</tr>
						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="lable.registration.region" /></b>							</td>

							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:property value="items.locationCategoriesByRegion.categoryName" />
								<br>
								<s:property value="items.locationCategoriesByCountry.categoryName" />
								<br>
								<s:property value="items.locationCategoriesByState.categoryName" />
						  </td>
						</tr>
						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="shop.zipcode" /></b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:property value="items.shipZip" />, <s:property value="items.shipAddress" />							</td>
						</tr>

						<!--<tr>
							<td class="search-text" valign="top" align="right">
								<b>Multimedia :</b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;">
							</td>
						</tr>
						<tr>
							<td class="search-text" valign="top" align="right">
								<b>Gallery :</b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;">
								<table border="0" cellpadding="0" cellspacing="0">
									<tbody>
										<tr>
											<td valign="top" class="common-text">
												<img src="servlet/ImageServlet?dto=path&id=1&name=<s:property value="uploadedFiles[%{gallaryId}].name" />" height="40" width="40" />											</td>
											<td width="10">
											</td>
											<td></td>
										</tr>
									</tbody>
								</table>
						  </td>

						</tr>-->
						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="Gallery_featured_label" /></b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:property value="items.galleryFeatured" />							</td>
						</tr>
						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="Gallery_plus_label" /></b>							</td>

							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:property value="items.title" />							</td>
						</tr>
						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="quantity_label" /></b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:property value="items.quantity" />							</td>
						</tr>
						<tr>

							<td class="search-text" valign="top" align="right">
								<b><s:text name="length_of_auction_label" /></b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:property value="items.duration" />							</td>
						</tr>
						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="auto_resubmit_lable" /></b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:property value="items.resubmit" />							</td>
						</tr>

						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="currency_label" /></b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:iterator value="currency" status="row">
									<s:if test="id == items.currency.id">
										<s:property value="currency" />
									</s:if>
								</s:iterator>
							</td>
						</tr>
						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="start_bid_label" /></b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:property value="items.startBid" />
								<!--Currency-->							</td>

						</tr>
						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="reserve_price_lable" /></b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;">
								<b><s:property value="items.reserve" /></b>
								<!--Currency-->							</td>
						</tr>
						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="buy_it_now_label" /></b>							</td>

							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:property value="items.buyPrice" />
								<!--Currency-->							</td>
						</tr>
						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="private_auction_label" /></b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:if test="items.privateAuction"><s:text name="yes_label" /></s:if>
								<s:else><s:text name="no_label" /></s:else>
							</td>
						</tr>
						<tr>

							<td class="search-text" valign="top" align="right">
								<b><s:text name="home_page_featured_lable" /></b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:if test="items.homePageFeatured"><s:text name="yes_label" /></s:if>
								<s:else><s:text name="no_label" /></s:else>
							</td>
						</tr>
						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="featured_plus_label" /></b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:if test="items.categoryFeatured"><s:text name="yes_label" /></s:if>
								<s:else><s:text name="no_label" /></s:else>
							</td>
						</tr>

						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="frame_label" /></b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:if test="items.framed"><s:text name="yes_label" /></s:if>
								<s:else><s:text name="no_label" /></s:else>
							</td>
						</tr>
						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="gift_icon_label" /></b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:property value="items.giftIcon" />							</td>

						</tr>
						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="Cross_Promotion_label" /></b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:property value="items.crossPromotion" />							</td>
						</tr>
						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="payment_methods_label" /></b>							</td>

							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:set name="methods" value="items.paymentMethods" />
								<c:set var="methodList" value="${fn:split(methods, ',')}" />
								<c:forEach items="${methodList}" var="method">
									<s:iterator value="#attr.paymentGateways" status="row">
										<s:if test="id == #attr.method"><s:property value="accountName" />, </s:if>
									</s:iterator>
								</c:forEach>
							</td>
						</tr>
						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="ship_to_label" /></b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:set name="shipTo" value="items.shipTo" />
								<c:set var="shipList" value="${fn:split(shipTo, ',')}" />
								<c:forEach items="${shipList}" var="ship">
									<s:iterator value="shipToList" status="row">
										<s:if test="id == #attr.ship"><s:property value="name" />, </s:if>
									</s:iterator>
								</c:forEach>
							</td>
						</tr>
						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="ship_time_label" /></b>							</td>

							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:iterator value="shippingTimeList" status="row">
									<s:if test="id == items.shipTime">
										<s:property value="name" />
									</s:if>
								</s:iterator>
							</td>
						</tr>
						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="shipping_payment_lable" /></b>
							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:property value="items.shipSum" />
								<!--Currency-->
								<br>
								<!--ShipPayment-->
								<br>
						  </td>
						</tr>
						<tr>

							<td class="search-text" valign="top" align="right">
								<b><s:text name="ship_insurance" /></b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:iterator value="shippingInsuranceList" status="row">
									<s:if test="id == items.shipInsurance">
										<s:property value="name" />
									</s:if>
								</s:iterator>
							</td>
						</tr>
						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="sales_tax_label" /></b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:property value="items.salesTax" />%							</td>
						</tr>

						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="return_period_label" /></b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:iterator value="returnPeriodList" status="row">
									<s:if test="id == items.returnPeriod">
										<s:property value="name" />
									</s:if>
								</s:iterator>
								<!--ReturnPeriod-->							</td>
						</tr>
						<tr>
							<td class="search-text" valign="top" align="right">
								<b><s:text name="return_method_label" /></b>							</td>
							<td valign="top" class="common-text" style="padding-top: 2px;">
								<s:iterator value="refundMethodList" status="row">
									<s:if test="id == items.returnMethod">
										<s:property value="name" />
									</s:if>
								</s:iterator>
								<!--ReturnMethod-->
								<br>
						  </td>
						</tr>

					</tbody>
			  </table>
			</td>
		</tr>
		<tr>
			<td style="border-bottom: 1px dotted rgb(30, 80, 180);" height="5">
				<img src="auction.cgi_files/dot1x1.gif" border="0" height="5">
			</td>
		</tr>
		<tr>
			<td height="5">
				<img src="auction.cgi_files/dot1x1.gif" border="0" height="5">
			</td>
		</tr>


		<tr>
			<td align="center">
				<table cellpadding="6" cellspacing="1">
					<tbody>
						<tr>
							<td colspan="2" align="center" class="grid-header-bg grid-header-text">
								<b><s:text name="auction_insertion_fees_title" /></b>							</td>
						</tr>

						<tr>
							<td valign="top" nowrap="nowrap" class="grid-bg common-bold-text">
								<b><s:text name="insertion_fees" /></b>							</td>
							<td align="right" valign="top" nowrap="nowrap" class="grid-bg common-text">
								<fmt:formatNumber pattern="##.##" type="number" maxFractionDigits="2" value="${regularInsertionFees}" minFractionDigits="2" minIntegerDigits="1" /> Euro							</td>
						</tr>
						<!--Reserve_Fee-->
						<!--MultiplyCategories_Fee-->
						<!--Buy_Now_Fee-->
						<!--SubTitle_Fee-->
						<!--Bold_Fee-->
						<!--Colored_Fee-->
						<!--bgColor_Fee-->
						<!--Profile_Fee-->
						<!--Homepage_Fee-->
						<!--Media_Fee-->
						<!--SlideShow_Fee-->
						<!--Gallery_Fee-->
						<!--Gallery_featured_Fee-->

						<!--Gallery_plus_Fee-->
						<!--Duration_Fee-->
						<!--Private_auction_Fee-->
						<!--Featured_Fee-->
						<!--Featured1_Fee-->
						<!--Frame_Fee-->
						<!--Gift_Icon_Fee-->
						<!--Cross_promotion_Fee-->
						<s:set var="currBalance" value="#session.user.currentBalance" />
						<tr>
							<td
								valign="top" nowrap="nowrap" class="grid-bg common-bold-text"
								style="border-top: 1px solid black; border-bottom: 3px double black;">
								<b><s:text name="total_fees" /></b>							</td>
							<td align="right"
								valign="top" nowrap="nowrap" class="grid-bg common-text"
								style="border-top: 1px solid black; border-bottom: 3px double black;">
								<fmt:formatNumber pattern="##.##" type="number" maxFractionDigits="2" value="${fees}" minFractionDigits="2" minIntegerDigits="1" /> Euro							</td>

						</tr>
						<tr>
							<td valign="top" nowrap="nowrap" class="grid-bg common-bold-text">
								<b><s:text name="paymentactivity.balance" /></b>							</td>
							<td align="right" valign="top" nowrap="nowrap" class="grid-bg common-text">
								<fmt:formatNumber pattern="##.##" type="number" maxFractionDigits="2" value="${currBalance}" minFractionDigits="2" minIntegerDigits="1" /> Euro							</td>
						</tr>
						<tr>
							<td valign="top" nowrap="nowrap" class="grid-bg common-bold-text">
								<b><s:text name="new_account_fees" /></b>							</td>

							<td align="right" valign="top" nowrap="nowrap" class="grid-bg common-text">
								<fmt:formatNumber pattern="##.##" type="number" maxFractionDigits="2" value="${currBalance - fees}" minFractionDigits="2" minIntegerDigits="1" /> Euro							</td>
						</tr>
					</tbody>
			  </table>
			</td>
		</tr>
		<tr>
			<td style="border-bottom: 1px dotted rgb(30, 80, 180);" height="5">
				<img src="auction.cgi_files/dot1x1.gif" border="0" height="5">
			</td>
		</tr>
		<tr>
			<td height="5">
				<img src="auction.cgi_files/dot1x1.gif" border="0" height="5">
			</td>
		</tr>
		<tr class="common-bold-text">
			<td align="left">
				<p align="justify">
					<s:text name="submit_auction_notes" />
				</p>
			</td>
	  </tr>
		<tr>
			<td height="5">
				<img src="auction.cgi_files/dot1x1.gif" border="0" height="5">
			</td>
		</tr>
		<tr>
			<td align="center">
				<table cellpadding="0" cellspacing="0">
					<tr>
						<td align="right">
							<table cellpadding="0" cellspacing="0">
								<tr>
									<td class="btn-grey-left1"></td>
									<td class="btn-grey-middle1"><s:submit name="Submit" value="Submit"  theme="simple" cssClass="submit-btn-common" /></td>
									<td class="btn-grey-right1"></td>
								</tr>
							</table>
						</td>
						<td align="left">
							<table cellpadding="0" cellspacing="0">
								<tr>
									<td class="btn-grey-left1"></td>
									<td class="btn-grey-middle1"><s:submit name="Makechanges" value="Make changes" action="%{backAction}" theme="simple" cssClass="submit-btn-common" /></td>
									<td class="btn-grey-right1"></td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td height="5">
				<img src="auction.cgi_files/dot1x1.gif" border="0" height="5">
			</td>
		</tr>
	</tbody>
</table>
<s:hidden name="items.itemId" value="%{items.itemId}" />
<s:hidden name="feesCharge" value="%{fees}" />
</s:form>